/**
 * 
 */
package com.mywind.entity.windfarm;

import java.util.Date;

import org.apache.ibatis.type.Alias;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import com.mywind.util.CustomDateSerializer;

/**
 * @author a01513
 *
 */
@Alias("userate")
public class UseRateEntity {
	private String farmid;
	private String farmname;
	private int turbineid;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date vtime;
	private float fvalue;
	private float fpower;
	private int fnum;
	private float rate;
	
	public String getFarmid() {
		return farmid;
	}
	public void setFarmid(String farmid) {
		this.farmid = farmid;
	}
	public int getTurbineid() {
		return turbineid;
	}
	public void setTurbineid(int turbineid) {
		this.turbineid = turbineid;
	}
	@JsonSerialize(using = CustomDateSerializer.class)
	public Date getVtime() {
		return vtime;
	}
	public void setVtime(Date vtime) {
		this.vtime = vtime;
	}
	public float getFvalue() {
		return fvalue;
	}
	public void setFvalue(float fvalue) {
		this.fvalue = fvalue;
	}
	public float getFpower() {
		return fpower;
	}
	public void setFpower(float fpower) {
		this.fpower = fpower;
	}
	public int getFnum() {
		return fnum;
	}
	public void setFnum(int fnum) {
		this.fnum = fnum;
	}
	public String getFarmname() {
		return farmname;
	}
	public void setFarmname(String farmname) {
		this.farmname = farmname;
	}
	public float getRate() {
		return rate;
	}
	public void setRate(float rate) {
		this.rate = rate;
	}
}
